package plus.easydo.easypush.service;

import me.zhyd.oauth.model.AuthUser;
import plus.easydo.easypush.entity.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import plus.easydo.easypush.vo.UserInfoVo;

/**
 *
 * @author yuzhanfeng
 */
public interface UserInfoService extends IService<UserInfo> {


    /**
     * 根据unionId获取用户信息
     *
     * @param unionId unionId
     * @param platform platform
     * @return UserInfo
     * @author laoyu
     * @date 2022/2/22
     */
    UserInfoVo getUserInfoByUnionIdAndPlatform(String unionId, String platform);

    /**
     * 创建用户
     *
     * @param authUser authUser
     * @return plus.easydo.easypush.entity.UserInfo
     * @author laoyu
     * @date 2022/2/22
     */
    UserInfoVo createUser(AuthUser authUser);
}
